import getlink from "@/api/getapi.js"
let TvNavM = {
    state:{
        tvnav:""
    },
    mutations:{
        UPTVNAVDATA(state,payload){
            state.tvnav=payload
        }
    },
    actions:{
        LINK_TVNAV_DATA(contvnav,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.tvnav,"tvnav")
                contvnav.commit("UPTVNAVDATA",ok.data.tvnav)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default TvNavM;


// TvHotM 
